package com.xing.game.bean.api;

import com.xing.game.bean.exception.BeanCheckException;
import com.xing.game.bean.exception.BeanInstantiationException;
import com.xing.game.bean.exception.BeanProcessException;

import java.util.concurrent.ExecutionException;

public interface BeanFactory {

    <T> T getBean(Class<T> beanClass) throws ExecutionException;

    <T> T registBean(Class<T> beanClass) throws BeanInstantiationException, BeanCheckException, BeanProcessException;

}
